package com.simple.common.entity.controller;

import com.simple.common.entity.ResData;
import com.simple.common.entity.constant.Payment;
import com.simple.common.entity.dto.pay.CallbackFixRefundDto;
import com.simple.common.entity.dto.pay.CallbackFixRefundTradeDto;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


/**
 * @author yasud
 * @date 2020年11月05日 11:53
 * @description
 **/
public interface CallbackFixRefundAction {

    /**
     * 退款固定回调获取退款流水
     *
     * @return
     * @throws Exception
     */
    @PostMapping(Payment.CALLBACK_FIX_REFUND_CODE)
    default ResData callbackFixRefund(@RequestBody CallbackFixRefundDto dto) throws Exception {
        return ResData.error("渠道不支持");
    }

    /**
     * 支付固定回调
     *
     * @param dto
     * @return
     * @throws Exception
     */
    @PostMapping(Payment.CALLBACK_FIX_REFUND_TRADE_CODE)
    default ResData callbackFixRefundTrade(@RequestBody CallbackFixRefundTradeDto dto) throws Exception {
        return ResData.error("渠道不支持");
    }
}
